package com.scorpio.goods.service;

import java.util.List;

import com.scorpio.basic.dto.NameIdDTO;
import com.scorpio.goods.domain.GoodsSkuEntity;
import com.scorpio.goods.vo.UpdateInventoryVo;

/**
 * 商品sku分组Service接口
 *
 * @author scorpio
 * @date 2021-10-29
 */
public interface IGoodsSkuService {

    //根据规格查询sku
    List<GoodsSkuEntity> selectSkuBySpec(Long specId);

    List<GoodsSkuEntity> selectByGoods(Long goodsId);

    //查询商品sku分组
    GoodsSkuEntity selectById(Long id);

    //查询商品sku分组列表
    List<GoodsSkuEntity> selectList(GoodsSkuEntity entity);

    //新增商品sku分组
    int save(GoodsSkuEntity entity);

    //更新排序
    int updateSort(Long id, Integer sort);

    //修改商品sku分组
    int update(GoodsSkuEntity entity);

    //批量删除商品sku分组
    int deleteByIds(Long[] ids);

    //获取未关联的数据  即将要删除的数据
    List<GoodsSkuEntity> selectDeleteNotContain(Long goodsId, List<Long> ids);

    //更新删除掉未关联的数据
    int updateDeleteNotContain(Long goodsId, List<Long> ids);

}
